package cn.sskxyz.security.authorization.dao;

import cn.sskxyz.mybatis.mode.Page;
import cn.sskxyz.security.authorization.model.SecurityScope;
import cn.sskxyz.security.authorization.model.SecurityService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SecurityServiceDao {

    void insertService(SecurityService securityService);

    List<SecurityService> selectProtectedService(Page page);

    void updateProtectedService(SecurityService securityService);

    List<SecurityScope> selectServiceScope(int serviceId);

    void associateServiceScope(@Param("serviceId") int serviceId, @Param("scopeId") int scopeId, @Param("status") int status);

    void associateServiceClient(@Param("serviceId") int serviceId, @Param("clientId") String clientId, @Param("status") int status);
}
